package lec10.am.cal;

public class Model {
	int a, b;

	public int getA() {
		return a;
	}

	public void setA(int a) {
		this.a = a;
	}

	public int getB() {
		return b;
	}

	public void setB(int b) {
		this.b = b;
	}

	public int getC() {
		return c;
	}

	private void setC(int c) {
		this.c = c;
	}

	int c;

	public Model() {
		this(0, 0);
	}

	public Model(int a, int b) {
		this.a = a;
		this.b = b;
	}

	public void compute() {
		c = a + b;

	}

	public static void main(String[] args) {
		Model model = new Model();
		model.setA(3);
		model.setB(4);
		System.out.println(model.getC());
	}

}
